package com.itbupt.infrastructure.persistent.dao;

import cn.bugstack.middleware.db.router.annotation.DBRouterStrategy;
import com.itbupt.infrastructure.persistent.po.UserAwardRecord;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author dingchang
 * @Date 2025/4/2 16:20
 * @Description: 用户中奖记录Dao对象
 */

@Mapper
@DBRouterStrategy(splitTable = true)
public interface IUserAwardRecordDao {

    /**
     * 插入一条用户中奖记录
     * @param userAwardRecord 用户中奖记录表
     */
    void insert(UserAwardRecord userAwardRecord);

    /**
     * 更新用户中奖记录
     * @param userAwardRecordReq
     * @return
     */
    int updateAwardRecordCompletedState(UserAwardRecord userAwardRecordReq);

}
